import request from '@/utils/request'

export default {



    // 添加小节
    addVideo(video) {

        return request({

            url: `/eduservice/edu-video/addEduVideo`,
            method: "post",
            data: video

        })
    },


    // 修改小节
    updateVideo(video) {

        return request({

            url: `/eduservice/edu-video/updateEduVideo`,
            method: "post",
            data: video
        })
    },


    //根据id查询
    getVideo(id) {

        return request({

            url: `/eduservice/edu-video/getEduVideoById?id=${id}`,
            method: "get",
        })



    },



    //删除小节
    deleteVideo(id) {

        return request({

            url: `/eduservice/edu-video/deleteEduVideoById?id=${id}`,
            method: "get",
        })
    },


    //删除视频
    deleteAliyunVideo(videoIdList) {

        return request({

            url: `/vodservice/deleteVideoByIds`,
            method: "post",
            data: videoIdList
        })

    }

}